<?php

declare(strict_types=1);
/**
 * This file is part of habo_new_media.
 *
 * @link     https://www.berlen.cn/
 * @contact  tech@berlen.cn
 * @license  http://gitlab.rehou.cn/habo/habo_new_media/-/blob/master/README.md
 */
namespace app\model\mongo;

class MongoOeVideoDayReportModel extends MongoReportModel
{
    /**
     * @var int 来源-视频素材
     */
    public const SOURCE_VIDEO = 1;

    /**
     * @var int 来源-广告体验版数据报表
     */
    public const SOURCE_CUSTOM = 2;

    /**
     * @var int 同步-成功
     */
    public const SYNC_SUCCESS = 1;

    /**
     * @var int 同步-失败
     */
    public const SYNC_FAIL = 0;

    /**
     * @var int 待汇总状态
     */
    public const ARCHIVE_WAIT = 0;

    protected $connection = 'mongodb';

    protected $name = 'oe_video_day_report';

    protected $pk = '_id';

    /**
     * 修复字段.
     * @return array|string[]
     */
    public function getRepairField(): array
    {
        return [
            'account_id',
            'video_id',
            'stat_date',
            'source',
        ];
    }
}
